package com.jiangfeixiang.springbootmybatis.service;

import com.jiangfeixiang.springbootmybatis.entity.User;

import java.util.List;

/**
 * Created by jiangfeixiang on 2018/8/25
 */
public interface UserService {

    /**
     * 查询所有用户
     */
    List<User> getAllUser();

    /**
     * 根据id查询
     */
    User getUserById(Integer id);

    /**
     * 添加用户
     */
    Integer addUser(User user);

    /**
     * 修改用户
     */
    Integer updateUser(User user);
    /**
     * 根据id删除用户
     */
    Integer deleteUserById(Integer id);
}
